package com.zlm.website.service.service.impl;

import com.zlm.common.base.AbstractBaseService;
import com.zlm.website.service.dao.WebsiteMessageDao;
import com.zlm.website.service.entity.WebsiteMessageDO;
import com.zlm.website.service.service.WebsiteMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 官网留言实现类
 * @Author: duyufu
 * @Date: 2019/4/14 11:45
 */
@Service
public class WebsiteMessageServiceImpl extends AbstractBaseService<WebsiteMessageDao, WebsiteMessageDO> implements WebsiteMessageService {
    @Autowired
    @Override
    public void setBaseDao(WebsiteMessageDao websiteMessageDao) {
        this.baseDao = websiteMessageDao;
    }

    @Override
    public boolean insertWebsiteMessage(WebsiteMessageDO message) {
        int i = baseDao.insertWebsiteMessage(message);
        if (i>0){
            return true;
        }
        return false;
    }
}
